package com.zd.ticketing.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zd.ticketing.service.IUserInfoService;

/**
 * 用户信息控制类
 * @author wangliming
 *
 * @date 2018年11月13日上午11:28:26
 */
@Controller
@RequestMapping("scenicSpot/user")
public class UserController {
	
	@Autowired
	private IUserInfoService userInfoService;
	
	@ResponseBody
	@RequestMapping("findInformation")
	public Map<String, Object> findInformation(Integer userId)throws Exception{
		Map<String, Object> resultMap = new HashMap<>();
		System.out.println(1111111111+"usrid"+userId);
		resultMap = userInfoService.findUserInformation(userId);
		return resultMap;
	}
}
